//******************************************************************
// zuoye1.java      Author: YanYuJun
// The random number between [-10 to 10]
// The binarry and hexadecimal number of random Numbers
//******************************************************************

import java.util.*;
import java.text.*;
//Use two packages

  public class zuoye1
   {
public static void main(String []args)
 {
 
  Random generator = new Random();
  
  float num;
 
  int num1;
  
  num = generator.nextFloat()*20 -10;
  // -10.000000 to 9.999999999
  
  System.out.println("From -10 to 10:" + num);
 
   num1 = (int)num;
  
  System.out.println(Integer.toHexString(num1));
  }
} 
